package com.example.common.i18n.config;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver;

@Component
public class LocalConfig {

    @Bean(name="acceptHeaderLocaleResolver")
    public AcceptHeaderLocaleResolver localeResolverBean() {
        return new AcceptHeaderLocaleResolver();
    }
}
